﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="cakesRSS.aspx.vb" Inherits="CakeThatIBaked.cakesRSS"  %>

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    
    <HeaderTemplate>
        <rss version="2.0">  
        <channel>  
        <title>Cake That I Baked</title>  
        <link>http://www.thecakethatIBaked.com</link>  
        <description>  
        Caked that I Baked
        </description>  
    </HeaderTemplate>

    <ItemTemplate>
        <item>
            <title><%# Eval("CakeTitle")%></title>
            <author><%# Eval("UserName")%></author>
            <description><%# Eval("CakeDescription")%></description>
            <link>details.aspx?cakeNo=<%# Eval("ID")%></link>
        </item>
    </ItemTemplate>

    <FooterTemplate>
            </channel>  
            </rss>  
    </FooterTemplate>

</asp:Repeater>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:CakeConnection %>" 
    ProviderName="<%$ ConnectionStrings:CakeConnection.ProviderName %>" 
    SelectCommand="SELECT [ID], [CakeTitle], [Author], [CakeDescription], [CakeRating], [CakePictureMain], [Score], [UserName] FROM [CakeUserView]">
</asp:SqlDataSource>
